package com.sfh.pst.http;

import com.sfh.base.AbstractBaseApplication;
import com.sfh.base.ApplicationEntity;
import com.sfh.pst.BuildConfig;

/**
 * 功能描述:网络
 *
 * @date 2017/9/4
 */
public abstract class HttpApplication extends AbstractBaseApplication {
    @Override
    public boolean isDebug() {

        return BuildConfig.DEBUG;
    }

    @Override
    public String getAPIURL() {

        return "http://172.0.0.1";
    }

    @Override
    public void onCreate() {

        super.onCreate ();
        new ApplicationEntity.Creator(this).setCache ("alliance").setURL (getAPIURL()).setDebug (isDebug()).build ();
    }

}
